﻿using MediatR;
using RearLivestock.Common.Domains.wbx;
using RearLivestock.Common.Dtos;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.Beginning.Api.Application.Command.PigBreedings
{
    /// <summary>
    /// 种母配种显示Command
    /// </summary>
    public class SearchPigsBreedingCommand : IRequest<Result<PageResultDto<PigsBreedingDto>>>
    {
        /// <summary>
        /// 配种日期
        /// </summary>
        public DateTime? SDate { get; set; }
        /// <summary>
        /// 配种日期
        /// </summary>
        public DateTime? ODate { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string? Leader { get; set; } = string.Empty;
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 每页显示的数量
        /// </summary>
        public int PageSize { get; set; }
    }
}
